﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Qu.ComputingContest.Model;

namespace ContestAdmin
{
    class Program
    {
        static void Main(string[] args)
        {
            Registration registration = RegistrationRepository.GetRegistration(220);
            string body = RegistrationRepository.GetRegistrationConfirmationMessage(registration);
            string subject = string.Format("Registration Confirmation for Qatar University Computing Contest {0}", registration.Year);

            try
            {
                RegistrationRepository.SendConfirmationEmail(registration, subject, body, true);
            }
            catch (Exception ex) {
                Console.WriteLine(ex.Message);
            }
            //RegistrationRepository.SendWorkshopConfirmation(new DateTime(2011, 3, 19));
            //RegistrationRepository.SendResourcesEmail();
            //RegistrationRepository.SendInvitationLetter(@"C:\QuComputingContest-InvitationLetter-Program.pdf");
        }
    }
}
